home *** CD-ROM | disk | FTP | other *** search
-
-
-
- aaaarrrrssssccccttttllll((((2222)))) aaaarrrrssssccccttttllll((((2222))))
-
-
-
- NNNNAAAAMMMMEEEE
- arsctl - modify the behavior of array sessions
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////aaaarrrrsssseeeessssssss....hhhh>>>>
-
- iiiinnnntttt aaaarrrrssssccccttttllll((((iiiinnnntttt ffffuuuunnnncccc,,,, vvvvooooiiiidddd ****bbbbuuuuffffppppttttrrrr,,,, iiiinnnntttt bbbbuuuufffflllleeeennnn))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The _a_r_s_c_t_l function queries and/or modifies some aspect of the behavior
- of array sessions on the currently running system.
-
- Most of the array session control operations take some sort of argument.
- A pointer to the argument is passed as _b_u_f_p_t_r, and the length of the
- argument is specified with _b_u_f_l_e_n.
-
- The particular operation to be performed is identified by the function
- code _f_u_n_c, which is defined in <_s_y_s/_a_r_s_e_s_s._h>. Available array session
- control operations include:
-
- AAAARRRRSSSSCCCCTTTTLLLL____GGGGEEEETTTTDDDDFFFFLLLLTTTTSSSSPPPPIIIILLLLEEEENNNN
- Returns the number of bytes of storage that is allocated for
- Service Provider Information in new array sessions. The value is
- stored as an _i_n_t at the location specified by _b_u_f_p_t_r. The default
- value at system initialization time is determined by the kernel
- variable _s_p_i_l_e_n, which can be modified using _s_y_s_t_u_n_e(1M).
-
- AAAARRRRSSSSCCCCTTTTLLLL____SSSSEEEETTTTDDDDFFFFLLLLTTTTSSSSPPPPIIIILLLLEEEENNNN
- Sets the number of bytes of storage that is allocated for Service
- Provider Information in new array sessions to the value contained
- in the _i_n_t pointed to by _b_u_f_p_t_r. An EEEEIIIINNNNVVVVAAAALLLL error will occur if
- the value is negative or is greater than the system maximum value
- (typically 1024), and the current setting will remain unchanged.
- Existing array sessions are not affected by this change, nor is
- the setting of the kernel variable _s_p_i_l_e_n. The caller must be
- privileged to use this function.
-
- AAAARRRRSSSSCCCCTTTTLLLL____GGGGEEEETTTTSSSSAAAAFFFF
- Returns the session accounting record format. The value is stored
- as an _i_n_t at the location specified by _b_u_f_p_t_r. The default value
- at system initialization time is determined by the kernel variable
- _s_e_s_s_a_f, which can be modified using _s_y_s_t_u_n_e(1M).
-
- AAAARRRRSSSSCCCCTTTTLLLL____SSSSEEEETTTTSSSSAAAAFFFF
- Sets the session accounting record format to the value contained
- in the _i_n_t pointed to by _b_u_f_p_t_r. Any subsequent session
- accounting records that are generated by the kernel will be in the
- specified format. An EEEEIIIINNNNVVVVAAAALLLL error will occur if an invalid format
- number is specified, and the current setting will remain
- unchanged. The caller must be privileged to use this function.
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- aaaarrrrssssccccttttllll((((2222)))) aaaarrrrssssccccttttllll((((2222))))
-
-
-
- AAAARRRRSSSSCCCCTTTTLLLL____GGGGEEEETTTTMMMMAAAACCCCHHHHIIIIDDDD
- Returns the current machine ID. The machine ID is an arbitrary
- value used by the kernel in the generation of array session
- handles. It is intended to uniquely identify a machine within a
- particular array/cluster configuration. The value is stored as an
- _i_n_t at the location specified by _b_u_f_p_t_r. The default value at
- system initialization time is determined by the kernel variable
- _a_s_m_a_c_h_i_d, which can be modified using _s_y_s_t_u_n_e(1M).
-
- AAAARRRRSSSSCCCCTTTTLLLL____SSSSEEEETTTTMMMMAAAACCCCHHHHIIIIDDDD
- Sets the machine ID to the value contained in the _i_n_t pointed to
- by _b_u_f_p_t_r. Any subsequent array session handles that are
- generated by the kernel may incorporate this value in some way. A
- machine ID is normally a positive integer in the range 1-32767.
- In an array/cluster configuration, no two machines should have the
- same machine ID. If a machine ID of 0 is specified, any
- subsequent array session handles generated by the kernel will be
- "local"; this means that the machine and array ID's will not be
- incorporated into the array session handle, and its uniqueness in
- an array/cluster configuration is not guaranteed. If a machine ID
- of -1 is specified, then the default machine ID specified by the
- kernel variable _a_s_m_a_c_h_i_d will be used instead. If any other value
- is specified for the machine ID, an EEEEIIIINNNNVVVVAAAALLLL error will occur and
- the machine ID will remain unchanged. The caller must be
- privileged to use this function.
-
- AAAARRRRSSSSCCCCTTTTLLLL____GGGGEEEETTTTAAAARRRRRRRRAAAAYYYYIIIIDDDD
- Returns the current array ID. The array ID is an arbitrary value
- used by the kernel in the generation of array session handles. If
- a particular machine were a member of more than one array or
- cluster, the array ID would typically identify which array the
- array session was associated with, if any. The value is stored as
- an _i_n_t at the location specified by _b_u_f_p_t_r. The default value at
- system initialization time is determined by the kernel variable
- _a_s_a_r_r_a_y_i_d, which can be modified using _s_y_s_t_u_n_e(1M).
-
- AAAARRRRSSSSCCCCTTTTLLLL____SSSSEEEETTTTAAAARRRRRRRRAAAAYYYYIIIIDDDD
- Sets the array ID to the value contained in the _i_n_t pointed to by
- _b_u_f_p_t_r. Any subsequent array session handles that are generated
- by the kernel may incorporate this value in some way. An array ID
- is an integer in the range 0-65535. If a value of -1 is
- specified, then the default array ID specified by the kernel
- variable _a_s_a_r_r_a_y_i_d will be used instead. If any other value
- outside of this range is specified, an EEEEIIIINNNNVVVVAAAALLLL error will occur and
- the array ID will remain unchanged. The values 0-65534 (0-0xfffe)
- are normally reserved for array services (see _a_r_r_a_y__s_e_r_v_i_c_e_s(5)),
- so if array services are in use on a system, the only appropriate
- array ID for the kernel is 65535 (0xffff). The caller must be
- privileged to use this function.
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- aaaarrrrssssccccttttllll((((2222)))) aaaarrrrssssccccttttllll((((2222))))
-
-
-
- AAAARRRRSSSSCCCCTTTTLLLL____GGGGEEEETTTTAAAASSSSHHHHCCCCTTTTRRRR
- Returns the current value of the counter used to form the local
- portion of the next array session handle. The value is stored as
- an _a_s_h__t at the location specified by _b_u_f_p_t_r. Notice that the
- counter could potentially be incremented at any time by any other
- CPU in the system, so the returned value must be considered a mere
- "snapshot" of the value at the instant that the function was
- processed.
-
- AAAARRRRSSSSCCCCTTTTLLLL____SSSSEEEETTTTAAAASSSSHHHHCCCCTTTTRRRR
- Sets the counter that is used by the kernel to form the local
- portion of array session handles to the value contained in the
- _a_s_h__t pointed to by _b_u_f_p_t_r. Any subsequent array session handles
- that are generated by the kernel may incorporate this value in
- some way. The valid range of values is determined by the kernel
- variables _m_i_n__l_o_c_a_l__p_a_g_g_i_d and _m_a_x__l_o_c_a_l__p_a_g_g_i_d. If a value
- outside of this range is specified, an EEEEIIIINNNNVVVVAAAALLLL error will occur and
- the counter will remain unchanged. The caller must be privileged
- to use this function.
-
- AAAARRRRSSSSCCCCTTTTLLLL____GGGGEEEETTTTAAAASSSSHHHHIIIINNNNCCCCRRRR
- Returns the current increment value for the counter used to form
- the local portion of the next array session handle. The value is
- stored as an _a_s_h__t at the location specified by _b_u_f_p_t_r.
-
- AAAARRRRSSSSCCCCTTTTLLLL____SSSSEEEETTTTAAAASSSSHHHHIIIINNNNCCCCRRRR
- Sets the increment for the counter that is used by the kernel to
- form the local portion of array session handles to the value
- contained in the _a_s_h__t pointed to by _b_u_f_p_t_r. The specified value
- will be added to this counter after the next and subsequent array
- session handles are generated by the kernel. The value may be
- positive or negative but it may not be zero, and its absolute
- value must be less than the difference between the kernel
- variables _m_a_x__l_o_c_a_l__p_a_g_g_i_d and _m_i_n__l_o_c_a_l__p_a_g_g_i_d. If an illegal
- value is specified, an EEEEIIIINNNNVVVVAAAALLLL error will occur and the increment
- value will remain unchanged. The caller must be privileged to use
- this function.
-
- AAAARRRRSSSSCCCCTTTTLLLL____GGGGEEEETTTTDDDDFFFFLLLLTTTTSSSSPPPPIIII
- Stores the default Service Provider Information into the buffer
- pointed to by _b_u_f_p_t_r. This information is considered to be
- associated with any array session that has neither specifically
- set its service provider information, nor is descended from an
- array session that has done so. If the argument buffer is too
- small to accommodate all of the service provider information, the
- data will be truncated. If the argument buffer is larger than the
- service provider information the data will be padded on the right
- with zeroes.
-
- AAAARRRRSSSSCCCCTTTTLLLL____SSSSEEEETTTTDDDDFFFFLLLLTTTTSSSSPPPPIIII
- Sets the default Service Provider Information to the contents of
- the buffer pointed to by _b_u_f_p_t_r. This information will
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-
-
-
- aaaarrrrssssccccttttllll((((2222)))) aaaarrrrssssccccttttllll((((2222))))
-
-
-
- immediately become associated with all array sessions that have
- neither specifically set their service provider information, nor
- are descended from an array session that has done so. The size of
- the service provider information should ordinarily be the same as
- whatever is returned by the AAAARRRRSSSSCCCCTTTTLLLL____GGGGEEEETTTTSSSSPPPPIIIILLLLEEEENNNN function. If the
- argument buffer is too small, the service provider information
- will be padded on the right with zeroes. If the argument buffer
- is too large, an EEEEIIIINNNNVVVVAAAALLLL error will occur and the default service
- provider information will remain unchanged. The caller must be
- privileged to use this function.
-
- AAAARRRRSSSSCCCCTTTTLLLL____AAAALLLLLLLLOOOOCCCCAAAASSSSHHHH
- Allocates an unused array session handle and stores it into the
- buffer pointed to by _b_u_f_p_t_r. _b_u_f_l_e_n must be equal to
- ssssiiiizzzzeeeeooooffff((((aaaasssshhhh____tttt)))) or else an EEEEIIIINNNNVVVVAAAALLLL error will occur. The ASH that is
- allocated by this function is guaranteed not to be in use on the
- local system at the time it was allocated. Furthermore, under
- normal circumstances the allocated ASH will not be reallocated by
- the local system until the "ASH counter" (see AAAARRRRSSSSCCCCTTTTLLLL____GGGGEEEETTTTAAAASSSSHHHHCCCCTTTTRRRR and
- AAAARRRRSSSSCCCCTTTTLLLL____SSSSEEEETTTTAAAASSSSHHHHCCCCTTTTRRRR) has incremented through its entire range of
- values and once again returns to the value that was used for the
- allocated ASH. Exceptions to this would include rebooting the
- system (which will ordinarily return the ASH counter to its
- minimum value) and manual changes to the ASH counter using the
- AAAARRRRSSSSCCCCTTTTLLLL____SSSSEEEETTTTAAAASSSSHHHHCCCCTTTTRRRR function.
-
- EEEERRRRRRRROOOORRRRSSSS
- _a_r_s_c_t_l may fail if one or more of these conditions are true:
-
- EEEEFFFFAAAAUUUULLLLTTTT _b_u_f_p_t_r is not a valid address.
-
- EEEEIIIINNNNVVVVAAAALLLL _f_u_n_c is not a valid function code.
-
- EEEEIIIINNNNVVVVAAAALLLL _b_u_f_l_e_n is the wrong size for the given function code.
-
- EEEEIIIINNNNVVVVAAAALLLL The argument pointed to by _b_u_f_p_t_r is not valid.
-
- EEEEPPPPEEEERRRRMMMM The current process does not have the appropriate privileges to
- perform the operation specified by _f_u_n_c.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- systune(1M), arsop(2), extacct(4), array_sessions(5).
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- Upon successful completion, _a_r_s_c_t_l returns a value of 0. Otherwise, a
- value of -1 is returned and _e_r_r_n_o is set to indicate the error.
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 4444
-
-
-
-